﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>互动交流</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />

    
    <link type="text/css" rel="stylesheet" href="{config.webpath}css/validate.css" />
    <link type="text/css" rel="stylesheet" href="{config.webpath}css/pagination.css" />
    <link type="text/css" rel="stylesheet" href="{config.webpath}scripts/artdialog/ui-dialog.css" />
    
    <link href="<%templateskin="statistics"%>/css/common.css" rel="stylesheet" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<%templateskin="statistics"%>/css/yxtj.css" />
    <script language="javascript" type="text/javascript" src="<%templateskin="statistics"%>/js/jquery-1.11.2.min.js"></script>
        <script type="text/javascript" src="<%templateskin="statistics"%>/js/common.js"></script>
    
    <script type="text/javascript">
$(function(){
    //初始化发表评论表单

});
function UserAddVerify(){
    var txtname = $("#txtUserName").val();
    var txtemail =  $("#txtUserEmail").val();
    var txtohone =  $("#txtUserTel").val();
    var txtadress =  $("#txtUserQQ").val();
    var txttitle =  $("#txtTitle").val();
    var txtyzm= $("#txtCode").val();
    var txtContent=$("#txtContent").val();
    if (txtname == "" || txtname==null)
    {
        alert('姓名不能为空');
        return false;
    } else if (txtemail == "" || txtemail == null )
    {
        alert('邮箱地址不能为空');
        return false;
    } else if (txtohone == "" || txtohone == null) {
        alert('电话号码不能为空');
        return false;
    } else if (txtadress == "" || txtadress == null) {
        alert('籍贯不能为空');
        return false;
    } else if (txttitle == "" || txttitle == null) {
        alert('信件标题不能为空');
        return false;
    } else if (txtContent == "" || txtContent == null) {
        alert('信件内容不能为空');
        return false;
    } else if (txtyzm == "" || txtyzm == null) {
        alert('验证码不能为空');
        return false;
    }




    /////
    $.post("/plugins/feedback/ajax.ashx", {"action":"add","site":"PricesBureau","txtname": txtname,"txtemail":txtemail,"txtohone":txtohone,"txtadress":txtadress,"txttitle":txttitle,"txtContent":txtContent,"txtyzm":txtyzm }, function (data) {
        if(data.status==1){
            alert(data.msg);
            window.location.href="feedback.html";
        }
    }, "json");


}
    </script>
</head>
<body>
    
    <!--Header-->
    <%template skin="statistics" src="header.html"%>
    <!--/Header-->
    <!--main -->
    <div class="showmain" style="width:1002px;height:auto;margin:0 auto;">
        <!--左边开始 -->
 <div class="left">
     	<div class="chnl_tit">互动交流</div>
    	<div class="chnl_tit2_bg"></div>
    <div id="left_height_js" class="chnl_list_blk">
    	<ul class="chnl_list">
        	<li class="onChnl" rel="Chnl"><a href="<%linkurl("feedback")%>">领导信箱</a></li>
            <li class="onChnl" rel="Chnl"><a href="<%linkurl("feedbacklist")%>">调查咨询</a></li>
                    	<li class="onChnl" rel="Chnl"><a href="<%linkurl("feedback")%>">监督举报</a></li>


        </ul>
        <div class="clear"></div>
    </div>
 </div>
<!--左边结束 -->
        <!--zlxzright-->
        <div class="zlxzright" style="height:450px;width: 730px;float: left;margin-top:4px;margin-left:19px;border:1px solid rgb(203, 201, 201);">
            <div class="right-btkj" style="width:729px;">
                <div class="erjirightnavtxt">当前位置：<a href="<%linkurl("index")%>">首页</a> &gt;&gt;互动交流 </div>
            </div>
            <form id="feedback_form" name="feedback_form" style="margin-left:20px;">

                        <div style=" float:left; margin-top:10px; width:50%; height:23px; "><p><label style="color:black;">您的姓名：</label><input id="txtUserName" name="txtUserName" type="text" value="" style="border:1px solid #cbc9c9; width:180px; height:23px; background-color:#FFF" /><span style="color:#F00;margin-left:5px;">*</span></p></div>

                        <div style=" float:left; margin-top:10px; width:50%; height:23px; "><p><label style="color:black;">邮箱地址：</label><input id="txtUserEmail" name="txtUserEmail" type="text" value="" style="border:1px solid #cbc9c9; width:180px; height:23px; background-color:#FFF" /><span style="color:#F00;margin-left:5px;">*</span></p></div>
                        <div style=" float:left; margin-top:10px; width:50%; height:23px; "><p><label style="color:black;">电话号码：</label><input id="txtUserTel" name="txtUserTel" type="text" value="" style="border:1px solid #cbc9c9; width:180px; height:23px; background-color:#FFF" /><span style="color:#F00;margin-left:5px;">*</span></p></div>
                        <div style=" float:left; margin-top:10px; width:50%; height:23px; "><p><label style="color:black;"><span style="letter-spacing:2em">籍</span>贯：</label><input id="txtUserQQ" name="txtUserQQ" type="text" value="" style="border:1px solid #cbc9c9; width:180px; height:23px; background-color:#FFF;" /><span style="color:#F00;margin-left:5px;">*</span></p></div>
                        <div style=" float:left; margin-top:10px; width:100%; height:23px; "><p><label style="color:black;">联系地址：</label><input type="text" value="" style="border:1px solid #cbc9c9; width:340px; height:23px; background-color:#FFF" /><span style="color:#F00;margin-left:5px;">*</span></p></div>
                        <div style=" float:left; margin-top:10px; width:100%; height:23px; "><p><label style="color:black;">信件标题：</label><input id="txtTitle" name="txtTitle" type="text" value="" style="border:1px solid #cbc9c9; width:340px; height:23px; background-color:#FFF" /><span style="color:#F00;margin-left:5px;">*</span></p></div>







                        <div style=" float:left; margin-top:10px; width:100%; height:155px; ">
                          
                                <div id="wujiaj_xinjianneir" style="font-size:12px;color:black; ">信件内容： </div>

                                <textarea  cols="50" rows="10" id="txtContent" name="txtContent" style="border: 1px solid #CBC9C9;margin-left:60px;"></textarea>
                                <span style="color:#F00;margin-left:5px; line-height: 10px;">*</span>
                            
                        </div>



                        <div style="float:left;  width:100%; height:23px; "><p style="margin-top:23px;"><label><span style="letter-spacing:3px;color:black;">验证码：</span></label><input id="txtCode" name="txtCode" type="text" value="" style="border:1px solid #cbc9c9; width:340px; height:23px; background-color:#FFF;" />
                            
                                                                                                <a href="javascript:;" onclick="ToggleCode(this, '{config.webpath}tools/verify_code.ashx');return false;"><img src="{config.webpath}tools/verify_code.ashx" width="80" height="22" align="absmiddle" /> 看不清楚？</a>
                                                                                                <span class="Validform_checktip"></span>
                            
                            <span style="color:#F00">*</span></p></div>

                        <div style=" float:left; margin-left:330px;  width:110px; height:28px;">
                            <input id="btnSubmit" name="btnSubmit" type="button" onclick="UserAddVerify()"  value="确认提交" style="background-color:#fcd848; width:110px; height:28px; border:0px; margin-top:30px;" />
                        </div>
                      



                    </form>
            <!--页码结束 -->
        </div>
        <!--zlxzright结束-->



    </div>
    
    <div class="clear cl"></div>
    <!--Footer-->
    <%template skin="statistics" src="footer.html"%>
    <!--/Footer-->
    <!--mainEnd -->
</body>
</html>